package tech.aistar.corejava.day13;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * @Author: lya
 * @Description: 本类的作用描述:桥接器 - 获取键盘的输入.
 *
 *                             编码:字符->字节
 *                             解码:字节->字符
 * @CreateDate: 2019/8/2
 * @Version: 1.0
 */
public class InputStreamReaderDemo {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        System.out.println("请您输入:");

        try {
            String line = br.readLine();

            System.out.println(line);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
